package com.cug.nageoffer.model.entity;

import lombok.Data;

/**
 * 关键字类
 */
@Data
public class KeyWord implements Comparable<KeyWord>{

    private String name; // 关键字名称

    private Double weight; // 关键字权重

    @Override
    public int compareTo(KeyWord o) {
        return weight > o.weight ? -1 : 1;
    }

}
